Problem Note 42497: Using the Bulk Copy (BCP) facility to bulkload a date into a SMALLDATETIME results in the error "Invalid character value for cast specification"
Using the BCP=YES LIBNAME option in SAS/ACCESS
® Interface to ODBC might cause an error. The following error might occur when you attempt to append data to an existing table in SQL Server that has a SMALLDATETIME field:
ERROR: CLI execute error: [Microsoft][ODBC SQL Server Driver]Invalid
character value for cast specification
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to ODBC | Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows XP 64-bit Edition | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft® Windows® for x64 | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2003 Datacenter Edition | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2003 Enterprise Edition | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2003 Standard Edition | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2003 for x64 | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2008 | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows Server 2008 for x64 | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Microsoft Windows XP Professional | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Enterprise 32 bit | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Enterprise x64 | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Home Premium 32 bit | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Home Premium x64 | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Professional 32 bit | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Professional x64 | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Ultimate 32 bit | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Windows 7 Ultimate x64 | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Windows Vista | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
Windows Vista for x64 | 9.21_M2 | 9.3_M1 | 9.2 TS2M3 | 9.3 TS1M1 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Using the BCP facility to bulkload a date into a SMALLDATETIME results in "ERROR: CLI execute error: [Microsoft][ODBC SQL Server Driver]Invalid character value for cast specification"
Type: | Problem Note |
Priority: | medium |
Topic: | Data Management ==> Data Sources ==> External Databases ==> ODBC (Open Database Connectivity)
|
Date Modified: | 2011-10-26 09:16:30 |
Date Created: | 2011-02-23 12:47:07 |